#ifndef __BOTTON_H__
#define __BOTTON_H__

#include "app.h"
#include "led.h"



typedef enum
{
    PRESS = 0,
    RELEASE = 1
}BottonSta_TypeDef;

static void EXTILine0_Config(void);
static void Botton_Init(void* t);

CLASS(BOTTON)
{
    LED *led_obj;
    BottonSta_TypeDef botton_sta;
    void (*botton_io_init)(void);
    void (*botton_mode_init)(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode);
    void (*botton_init)(void* t);
};






#endif

